﻿@{
    ViewBag.Title = "ContentDialog";
    Layout = "~/Views/Shared/_Page.cshtml";
}

<h2>Content Dialog</h2>

<input type="button" id="btnContentDialog" value="Content Dialog" />

<script type="text/javascript">
    $(document).ready(function () {
        var contentDialog = new ZeusContentDialog("contentDlg", "content dialog", "contentId", "small");
        contentDialog.Init();
        
        $('#btnContentDialog').click(function () {
            var url = "/Test/TestForm";

            contentDialog.LoadContent(url);
            contentDialog.Show();
        });
    });
</script>